package com.wisdom.rpcDemon.controller;

import com.wisdom.base.response.ResultBean;
import com.wisdom.rpcDemon.api.ServerService;
import com.wisdom.rpcDemon.service.ServerDemonService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @description: <>
 * @author: Leo
 * @date:2021-08-22 10:37
 */
@RestController
@RequestMapping("/server")
public class ServerDemonController {

    @Autowired
    private ServerService service;

    @GetMapping("/getInfo")
    public ResultBean<List<String>> getInfo(@RequestHeader String requestId){
        return service.test(requestId);
    }
}
